from View.WindowThread.InterfaceThread import InterfaceThread
from View.WindowThread.ThreadManager import ThreadManager
import time

class ThreadDemo(InterfaceThread):
    def whileBody(self, count):
        print("线程执行中")

if __name__ == '__main__':
    tm = ThreadManager(ThreadDemo()) # 创建线程管理类 之后自动执行
    time.sleep(2)
    print("关闭线程")
    tm.closeThread()